<?php
/***************************************************************************** *
* Class Name: GlyphDef
* Author: Nicholas Malacarne
* Description: Holds all information about each Glyph.
***************************************************************************** */
class GlyphDef
{
    private $card;

    function __construct($type)
    {
        $DB = new DBMgrDef('localhost', 'root', 'glyph', 'glyph');

        $this->card = $DB->fetchRow('glyphs', $type);

        unset($DB);
    }

    public function getName()
    {
        return $this->card["name"];
    }

    public function getDescript()
    {
        return $this->card["descript"];
    }

    public function getImage()
    {
        return $this->card["image"];
    }

    public function getDmg()
    {
        return $this->card["dmg"];
    }

    public function getTier()
    {
        return $this->card["tier"];
    }

    public function getLifeLoss()
    {
        return $this->card["lifeLoss"];
    }

    public function getLifeGain()
    {
        return $this->card["lifeGain"];
    }

    public function getEffectLen()
    {
        return $this->card["effectLen"];
    }

    public function isFire()
    {
        return $this->card["bFire"];
    }

    public function isWind()
    {
        return $this->card["bWind"];
    }

    public function isWater()
    {
        return $this->card["bWater"];
    }

    public function isEarth()
    {
        return $this->card["bEarth"];
    }

    public function isLife()
    {
        return $this->card["bLife"];
    }

    public function isDeath()
    {
        return $this->card["bDeath"];
    }

    public function isWarding()
    {
        return $this->card["bWarding"];
    }

    public function isBlinding()
    {
        return $this->card["bBlinding"];
    }

    public function isBurning()
    {
        return $this->card["bBurning"];
    }

    public function isCursing()
    {
        return $this->card["bCursing"];
    }

    public function isBlessing()
    {
        return $this->card["bBlessing"];
    }

    public function isPoisoning()
    {
        return $this->card["bPoisoning"];
    }

    public function isWeakening()
    {
        return $this->card["bWeakening"];
    }

    public function isCleansing()
    {
        return $this->card["bCleansing"];
    }
    
    public function isDazing()
    {
        return $this->card["bDazing"];
    }

    public function isUnWarding()
    {
        return $this->card["bUnWarding"];
    }

    public function isDiscard()
    {
        return $this->card["bDiscard"];
    }

    public function getDiscardAmt()
    {
        return $this->card["discardAmt"];
    }
}
?>
